package com.ruoyi.system.domain.reseller;

import com.ruoyi.common.core.domain.model.VsUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
 * This file is part of 南阳迈特网络科技有限公司.
 * @company  南阳迈特网络科技有限公司
 * @link     https://www.nymaite.com
 * @document https://product.nymaite.cn
 * @contact  service@nymaite.com
 * @author nymaite
 */
/**
 * 分销用户对象 vs_dramas_reseller_user
 * 
 * @author zzx
 * @date 2024-04-30
 */
public class VsDramasResellerUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Integer id;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Integer siteId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 上级用户ID */
    @Excel(name = "上级用户ID")
    private Long parentId;

    /** 分销商ID */
    @Excel(name = "分销商ID")
    private Integer resellerUserId;

    /** 用户类型:1=直接用户,2=间接用户 */
    @Excel(name = "用户类型:1=直接用户,2=间接用户")
    private String type;

    private Long createtime;

    private Integer directUser;

    private Integer indirectUser;

    private VsUser userInfo;

    public VsUser getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(VsUser userInfo) {
        this.userInfo = userInfo;
    }

    public Integer getDirectUser() {
        return directUser;
    }

    public void setDirectUser(Integer directUser) {
        this.directUser = directUser;
    }

    public Integer getIndirectUser() {
        return indirectUser;
    }

    public void setIndirectUser(Integer indirectUser) {
        this.indirectUser = indirectUser;
    }

    public Long getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Long createtime) {
        this.createtime = createtime;
    }

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setSiteId(Integer siteId) 
    {
        this.siteId = siteId;
    }

    public Integer getSiteId() 
    {
        return siteId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setResellerUserId(Integer resellerUserId) 
    {
        this.resellerUserId = resellerUserId;
    }

    public Integer getResellerUserId() 
    {
        return resellerUserId;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("siteId", getSiteId())
            .append("userId", getUserId())
            .append("parentId", getParentId())
            .append("resellerUserId", getResellerUserId())
            .append("type", getType())
            .append("createtime", getCreatetime())
            .toString();
    }
}
